﻿/*
 *
 * User: inffbr
 * Date: 17.02.2011
 * Time: 16:01
 * 
 */
using System;

namespace ThatsMeSDK
{
	/// <summary>
	/// Defines the head informations of a message
	/// </summary>
	public class MessageHeader
	{
		/// <summary>
		/// id of the message
		/// </summary>
		public int Id{get; set;}
		/// <summary>
		/// Subject of the message
		/// </summary>
		public string Subject{get; set;}
		
		/// <summary>
		/// Checked if is already read
		/// </summary>
		public bool IsRead{get; set;}
		/// <summary>
		/// Checked if is already replied
		/// </summary>
		public bool IsReplied{get; set;}
		
		/// <summary>
		/// Time when it was sent
		/// </summary>
		public DateTime SendDate{get; set;}
		
		/// <summary>
		/// Contan who sent the mail
		/// </summary>
		public MessageContact From{get;set;}
		/// <summary>
		/// Contact who recieved the mail
		/// </summary>
		public MessageContact To{get; set;}
		
		public MessageHeader()
		{
		}
		
		/// <summary>
		/// Defines a Message Contact
		/// </summary>
		public class MessageContact
		{
			/// <summary>
			/// Id of the Contact
			/// </summary>
			public int Id{get; set;}
			/// <summary>
			/// Nick Name of the Contact
			/// </summary>
			public string Nick{get; set;}
			
			/// <summary>
			/// Creates a new MessageContuct
			/// </summary>
			/// <param name="_id">Id of the contact</param>
			/// <param name="_nick">Nickname of the contact</param>
			public MessageContact(int _id, string _nick)
			{
				this.Id = _id;
				this.Nick = _nick;
			}
		}
	}
}
